package com.smz.controller;

import com.smz.entity.TShipping;
import com.smz.service.TShippingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TShippingController {

    @Autowired
    private TShippingService tShippingService;

    @RequestMapping(value = "/tShipping",method = RequestMethod.POST)
    public String tShippingAddGgy(@RequestBody TShipping tShipping){
        tShippingService.save(tShipping);
        return "ok";
    }
}
